package io.renren.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 实验室管理员
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-10-25 12:55:29
 */
@Data
@TableName("jx_laboratory_manager")
public class JxLaboratoryManagerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 名称
	 */
	@NotBlank(message="请填管理员名称", groups = {AddGroup.class, UpdateGroup.class})
	private String name;
	/**
	 * 密码
	 */
	@NotBlank(message="请填管理员密码", groups = {AddGroup.class, UpdateGroup.class})
	private String password;
	/**
	 * 密码加盐
	 */
	private String salt;
	/**
	 * 实验室id
	 */
	@NotNull(message="请填实验室id", groups = {AddGroup.class, UpdateGroup.class})
	private Long laboratoryId;

	/**
	 * 实验室名称
	 */
	@TableField(exist=false)
	private  String  laboratoryName;
	/**
	 * 实验室编号
	 */
	@TableField(exist=false)
	private  String laboratoryNum;

}
